$OpenBSD: patch-lib_pypy__tkinter_tklib_py,v 1.4 2015/04/05 11:15:08 edd Exp $
--- lib_pypy/_tkinter/tklib.py.orig	Mon Mar 23 16:17:54 2015
+++ lib_pypy/_tkinter/tklib.py	Thu Apr  2 19:25:50 2015
@@ -119,9 +119,9 @@ void Tcl_FindExecutable(char *argv0);
 # XXX find a better way to detect paths
 # XXX pick up CPPFLAGS and LDFLAGS and add to these paths?
 if sys.platform.startswith("openbsd"):
-    incdirs = ['/usr/local/include/tcl8.5', '/usr/local/include/tk8.5', '/usr/X11R6/include']
-    linklibs = ['tk85', 'tcl85']
-    libdirs = ['/usr/local/lib', '/usr/X11R6/lib']
+    incdirs = ['${MODTCL_INCDIR}', '${MODTK_INCDIR}', '${X11BASE}/include']
+    linklibs = ['${MODTK_LIB}', '${MODTCL_LIB}']
+    libdirs = ['${LOCALBASE}/lib', '${X11BASE}/lib']
 elif sys.platform.startswith("freebsd"):
     incdirs = ['/usr/local/include/tcl8.6', '/usr/local/include/tk8.6', '/usr/local/include/X11', '/usr/local/include']
     linklibs = ['tk86', 'tcl86']
